<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />
<title>成员管理</title>
<link href="../member/templets/style/base.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../member/templets/js/j.js"></script>
<script language="javascript" type="text/javascript" src="../member/templets/js/table_function.js"></script>
</head>
<body>
<div id="main">
  <?php include(DEDEMEMBER."../templets/head.htm"); ?>
  <div id="content" class="w960 clearfix">
    <?php include(DEDEMEMBER."./templets/menu.php"); ?>
    <div id="mcpmain">
      <div id="appTab">
        <ul>
          <li class="thisTab"><a href="mygroup.php"><span>创建的圈子</span></a></li>
          <li><a href="myjoin.php"><span>我的发帖</span></a></li>
          <li><a href="index.php"><span>圈子频道</span></a></li>
          <li><a href="create.php" target="_blank"><span>创建圈子</span></a></li>
        </ul>
      </div>
      <ul class="tabSub">
        <li><a href="mygroup_manage.php?id=<?php echo $id;?>"><span>基本资料</span></a></li>
        <li><a href="mygroup_cate.php?id=<?php echo $id;?>"><span>话题分类</span></a></li>
        <li class="thisTab"><a href="mygroup_member.php?id=<?php echo $id;?>"><span>成员管理</span></a></li>
        <li><a href="mygroup_skin.php?id=<?php echo $id;?>"><span>自定义风格</span></a></li>
        <li><a href="mygroup_notice.php?id=<?php echo $id;?>"><span>修改公告</span></a></li>
      </ul>
      <div id="mainCp">
        <h3 class="meTitle"><strong>成员管理</strong></h3>   
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list">
          <thead>
            <tr>
              <th width="70%">用户名</th>
              <th width="30%">操作</th>
            </tr>
          </thead>
          <tbody>
          <?php
$atts = array();
$atts['tagname'] = 'datalist';
$blockValue = $this->refObj->GetArcList($atts,$this->refObj,$fields); 
if(is_array($blockValue)){
foreach( $blockValue as $key=>$fields )
{

							$rs = $fields;
								$mastericon = GetMaster($rs['username']);
								if(empty($mastericon)) $setmaster = "设为管理员";
								else $setmaster = "辞去管理员";
                        ?>
            <tr>
              <td class="tabTitle"><a href="index.php?id=<?php echo $rs['uid'];?>" target="_blank"><?php echo $rs['username']?></a></td>
              <td align="center"><?php
										if($cfg_group_click){
										$isjoin = "<a  href='mygroup_member.php?action=join&uid={$rs['uid']}&id=$id'><span color='red'>[通过]</span></a>";
										if($rs['isjoin']) $isjoin = "";
									 echo $isjoin;
										}
									?>
                <a href="mygroup_member.php?action=admin&uid=<?php echo $rs['uid']?>&id=<?php echo $id;?>">[<?php echo $setmaster;?>]</a> <a href="mygroup_member.php?action=del&uid=<?php echo $rs['uid']?>&id=<?php echo $id;?>">[删除该成员]</a></td>
            </tr>
         <?php
}
}?>
          </tbody>
          <tfoot>
            <tr>
              <td colspan="6"><div class="pageList"><?php
$atts = array();
$atts['tagname'] = 'pagelist';
$atts['listsize'] = '5';
 echo $this->refObj->GetPageList($atts,$this->refObj,$fields); 
?>
</div></td>
            </tr>
          </tfoot>
        </table>
        </div>
        <!--主操作区域 -->
      </div>
 <div class="clear"></div>
    </div>
  </div>
<?php include(DEDEMEMBER."./templets/foot.htm"); ?>
</div>

</body>
</html>